<?php

use yii\db\Migration;
use yii\db\Schema;

class m170524_015039_add_column_customer extends Migration
{
    public function up()
    {
         $this->addColumn('{{order_customer}}', 'passport_grant', Schema::TYPE_DATETIME. " null COMMENT '护照签发日期' ");
    }

    public function down()
    {
        echo "m170524_015039_add_column_customer cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
